package com.hospital.doctor.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Operation {
    //手术编号
    private int oId;
    //病人编号
    private int pId;
    //医生编号
    private int dId;
    //患者病情
    private String oState;
    //手术内容
    private String oContent;
    //手术注意事项
    private String oAttention;
    //麻醉方式
    private String oMazui;
    //麻醉师
    private String oMazuishi;
    //手术准备
    private String oReady;
    //主刀医生
    private String oDoctor;
    //手术开始时间
    @JsonFormat( pattern = "yyyy-MM-dd kk:ss")
    private Date oStartTime;
    //申请时间
    @JsonFormat( pattern = "yyyy-MM-dd kk:ss")
    private Date oApplyTime;
    //是否失效
    private int oValid;

    //病人
    private Patient patient;

    //医生
    private Doctor doctor;


    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public int getoId() {
        return oId;
    }

    public void setoId(int oId) {
        this.oId = oId;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getoState() {
        return oState;
    }

    public void setoState(String oState) {
        this.oState = oState;
    }

    public String getoContent() {
        return oContent;
    }

    public void setoContent(String oContent) {
        this.oContent = oContent;
    }

    public String getoAttention() {
        return oAttention;
    }

    public void setoAttention(String oAttention) {
        this.oAttention = oAttention;
    }

    public String getoMazui() {
        return oMazui;
    }

    public void setoMazui(String oMazui) {
        this.oMazui = oMazui;
    }

    public String getoMazuishi() {
        return oMazuishi;
    }

    public void setoMazuishi(String oMazuishi) {
        this.oMazuishi = oMazuishi;
    }

    public String getoReady() {
        return oReady;
    }

    public void setoReady(String oReady) {
        this.oReady = oReady;
    }

    public String getoDoctor() {
        return oDoctor;
    }

    public void setoDoctor(String oDoctor) {
        this.oDoctor = oDoctor;
    }

    public Date getoStartTime() {
        return oStartTime;
    }

    public void setoStartTime(Date oStartTime) {
        this.oStartTime = oStartTime;
    }

    public Date getoApplyTime() {
        return oApplyTime;
    }

    public void setoApplyTime(Date oApplyTime) {
        this.oApplyTime = oApplyTime;
    }

    public int getoValid() {
        return oValid;
    }

    public void setoValid(int oValid) {
        this.oValid = oValid;
    }
}
